\section{fsm\+\_\+master.\+h File Reference}
\label{fsm__master_8h}\index{fsm\+\_\+master.\+h@{fsm\+\_\+master.\+h}}


Ether\+C\+AT master state machine.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ ec\+\_\+sii\+\_\+write\+\_\+request\+\_\+t}
\begin{DoxyCompactList}\small\item\em S\+II write request. \end{DoxyCompactList}\item 
struct \textbf{ ec\+\_\+fsm\+\_\+master}
\begin{DoxyCompactList}\small\item\em Finite state machine of an Ether\+C\+AT master. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \textbf{ ec\+\_\+fsm\+\_\+master} \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\label{fsm__master_8h_ac522240017742f5ce6f6e6099a4d55c6}} 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+init} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$, \textbf{ ec\+\_\+master\+\_\+t} $\ast$, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\label{fsm__master_8h_aab6e3a8172db55802b1ebb309a308574}} 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+clear} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\label{fsm__master_8h_a8a4cf483cc0f32ade4601009604a70ce}} 
void \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+reset} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Reset state machine. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+exec} (\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Executes the current state of the state machine. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+idle} (const \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Ether\+C\+AT master state machine. 



\subsection{Typedef Documentation}
\mbox{\label{fsm__master_8h_a0d05c703de0dd2047ef9ae60d6822cdc}} 
\index{fsm\+\_\+master.\+h@{fsm\+\_\+master.\+h}!ec\+\_\+fsm\+\_\+master\+\_\+t@{ec\+\_\+fsm\+\_\+master\+\_\+t}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+t@{ec\+\_\+fsm\+\_\+master\+\_\+t}!fsm\+\_\+master.\+h@{fsm\+\_\+master.\+h}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+t}
{\footnotesize\ttfamily typedef struct \textbf{ ec\+\_\+fsm\+\_\+master} \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t}}

\begin{DoxySeeAlso}{See also}
\doxyref{ec\+\_\+fsm\+\_\+master}{p.}{structec__fsm__master} 
\end{DoxySeeAlso}


Definition at line 64 of file fsm\+\_\+master.\+h.



\subsection{Function Documentation}
\mbox{\label{fsm__master_8h_aef7063fd815224264557e936f96d8844}} 
\index{fsm\+\_\+master.\+h@{fsm\+\_\+master.\+h}!ec\+\_\+fsm\+\_\+master\+\_\+exec@{ec\+\_\+fsm\+\_\+master\+\_\+exec}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+exec@{ec\+\_\+fsm\+\_\+master\+\_\+exec}!fsm\+\_\+master.\+h@{fsm\+\_\+master.\+h}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+exec()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+master\+\_\+exec (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Executes the current state of the state machine. 

If the state machine\textquotesingle{}s datagram is not sent or received yet, the execution of the state machine is delayed to the next cycle.

\begin{DoxyReturn}{Returns}
true, if the state machine was executed 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 150 of file fsm\+\_\+master.\+c.

\mbox{\label{fsm__master_8h_af02432232f46f496f90d376082717440}} 
\index{fsm\+\_\+master.\+h@{fsm\+\_\+master.\+h}!ec\+\_\+fsm\+\_\+master\+\_\+idle@{ec\+\_\+fsm\+\_\+master\+\_\+idle}}
\index{ec\+\_\+fsm\+\_\+master\+\_\+idle@{ec\+\_\+fsm\+\_\+master\+\_\+idle}!fsm\+\_\+master.\+h@{fsm\+\_\+master.\+h}}
\subsubsection{ec\+\_\+fsm\+\_\+master\+\_\+idle()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+master\+\_\+idle (\begin{DoxyParamCaption}\item[{const \textbf{ ec\+\_\+fsm\+\_\+master\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}

\begin{DoxyReturn}{Returns}
true, if the state machine is in an idle phase 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Master state machine. \\
\hline
\end{DoxyParams}


Definition at line 169 of file fsm\+\_\+master.\+c.

